package uba.ing2.subite.demo;

import java.util.ArrayList;
import java.util.List;

import uba.ing2.subite.domain.PaymentCard;

public class SubiteDemoModelBuilder {
	private List<StringView<PaymentCard>> cardsWithDescription = new ArrayList<StringView<PaymentCard>>();
	private List<Number> ticketValues = new ArrayList<Number>();

	public SubiteDemoModelBuilder addTicketValue(double initialBalance) {
		ticketValues.add(initialBalance);
		return this;
	}

	public SubiteDemoModelBuilder addCard(PaymentCard card, String description) {
		cardsWithDescription.add(new StringView<PaymentCard>(card, description));
		return this;
	}

	public SubiteDemoModel build() {
		return new SubiteDemoModel(cardsWithDescription, ticketValues);
	}

}
